Tables [dbo].[RecurringDonationExpectedPayment]
Properties
PropertyValue
Created6:31:42 AM Thursday, April 01, 2010
Last Modified11:40:07 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_RecurringDonationExpectedPayment: RecurringDonationExpectedPaymentKeyRecurringDonationExpectedPaymentKeyuniqueidentifier16
No
Foreign Keys FK_RecurringDonationExpectedPayment_RecurringDonationExpectedPaymentSet: [dbo].[RecurringDonationExpectedPaymentSet].RecurringDonationExpectedPaymentSetKeyRecurringDonationExpectedPaymentSetKeyuniqueidentifier16
No
Foreign Keys FK_RecurringDonationExpectedPayment_RecurringDonationCommitment: [dbo].[RecurringDonationCommitment].RecurringDonationCommitmentKeyRecurringDonationCommitmentKeyuniqueidentifier16
No
Foreign Keys FK_RecurringDonationExpectedPayment_OpportunityMain: [dbo].[OpportunityMain].OpportunityKeyOpportunityKeyuniqueidentifier16
Yes
DonationAmountdecimal(18,4)9
No
PaymentMethodvarchar(10)10
No
Distributionvarchar(31)31
No
Appealvarchar(40)40
No
Campaignvarchar(10)10
No
Fundvarchar(10)10
No
Narrativenvarchar(200)400
Yes
('')
MatchReferencenvarchar(18)36
No
BranchSortCodenvarchar(6)12
No
BankAccountNumbernvarchar(8)16
No
BankAccountNamenvarchar(18)36
No
ResultingTransNumint4
No
((0))
ResultingTransLineNumint4
No
((0))
Foreign Keys FK_RecurringDonationExpectedPayment_RecurringDonationExpectedPaymentStatusRef: [dbo].[RecurringDonationExpectedPaymentStatusRef].RecurringDonationExpectedPaymentStatusCodeRecurringDonationExpectedPaymentStatusCodesmallint2
No
Foreign Keys FK_RecurringDonationExpectedPayment_UserMain_CreatedBy: [dbo].[UserMain].CreatedByUserKeyCreatedByUserKeyuniqueidentifier16
No
CreatedOndatetime8
No
(getdate())
Foreign Keys FK_RecurringDonationExpectedPayment_UserMain_UpdatedBy: [dbo].[UserMain].UpdatedByUserKeyUpdatedByUserKeyuniqueidentifier16
No
UpdatedOndatetime8
No
(getdate())
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_RecurringDonationExpectedPayment: RecurringDonationExpectedPaymentKeyPK_RecurringDonationExpectedPaymentRecurringDonationExpectedPaymentKey
Yes
Foreign Keys Foreign Keys
NameColumns
FK_RecurringDonationExpectedPayment_OpportunityMainOpportunityKey->[dbo].[OpportunityMain].[OpportunityKey]
FK_RecurringDonationExpectedPayment_RecurringDonationCommitmentRecurringDonationCommitmentKey->[dbo].[RecurringDonationCommitment].[RecurringDonationCommitmentKey]
FK_RecurringDonationExpectedPayment_RecurringDonationExpectedPaymentSetRecurringDonationExpectedPaymentSetKey->[dbo].[RecurringDonationExpectedPaymentSet].[RecurringDonationExpectedPaymentSetKey]
FK_RecurringDonationExpectedPayment_RecurringDonationExpectedPaymentStatusRefRecurringDonationExpectedPaymentStatusCode->[dbo].[RecurringDonationExpectedPaymentStatusRef].[RecurringDonationExpectedPaymentStatusCode]
FK_RecurringDonationExpectedPayment_UserMain_CreatedByCreatedByUserKey->[dbo].[UserMain].[UserKey]
FK_RecurringDonationExpectedPayment_UserMain_UpdatedByUpdatedByUserKey->[dbo].[UserMain].[UserKey]
Permissions
TypeActionOwning Principal
GrantDeleteIMIS
GrantInsertIMIS
GrantReferencesIMIS
GrantSelectIMIS
GrantUpdateIMIS
SQL Script
CREATE TABLE [dbo].[RecurringDonationExpectedPayment]
(
[RecurringDonationExpectedPaymentKey] [uniqueidentifier] NOT NULL,
[RecurringDonationExpectedPaymentSetKey] [uniqueidentifier] NOT NULL,
[RecurringDonationCommitmentKey] [uniqueidentifier] NOT NULL,
[OpportunityKey] [uniqueidentifier] NULL,
[DonationAmount] [decimal] (18, 4) NOT NULL,
[PaymentMethod] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Distribution] [varchar] (31) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Appeal] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Campaign] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Fund] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Narrative] [nvarchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF_RecurringDonationExpectedPayment_Narrative] DEFAULT (''),
[MatchReference] [nvarchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BranchSortCode] [nvarchar] (6) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BankAccountNumber] [nvarchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BankAccountName] [nvarchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ResultingTransNum] [int] NOT NULL CONSTRAINT [DF_RecurringDonationExpectedPayment_ResultingTransNum] DEFAULT ((0)),
[ResultingTransLineNum] [int] NOT NULL CONSTRAINT [DF_RecurringDonationExpectedPayment_ResultingTransLineNum] DEFAULT ((0)),
[RecurringDonationExpectedPaymentStatusCode] [smallint] NOT NULL,
[CreatedByUserKey] [uniqueidentifier] NOT NULL,
[CreatedOn] [datetime] NOT NULL CONSTRAINT [DF_RecurringDonationExpectedPayment_CreatedOn] DEFAULT (getdate()),
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[UpdatedOn] [datetime] NOT NULL CONSTRAINT [DF_RecurringDonationExpectedPayment_UpdatedOn] DEFAULT (getdate())
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[RecurringDonationExpectedPayment] ADD CONSTRAINT [PK_RecurringDonationExpectedPayment] PRIMARY KEY CLUSTERED ([RecurringDonationExpectedPaymentKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RecurringDonationExpectedPayment] ADD CONSTRAINT [FK_RecurringDonationExpectedPayment_OpportunityMain] FOREIGN KEY ([OpportunityKey]) REFERENCES [dbo].[OpportunityMain] ([OpportunityKey])
GO
ALTER TABLE [dbo].[RecurringDonationExpectedPayment] ADD CONSTRAINT [FK_RecurringDonationExpectedPayment_RecurringDonationCommitment] FOREIGN KEY ([RecurringDonationCommitmentKey]) REFERENCES [dbo].[RecurringDonationCommitment] ([RecurringDonationCommitmentKey])
GO
ALTER TABLE [dbo].[RecurringDonationExpectedPayment] ADD CONSTRAINT [FK_RecurringDonationExpectedPayment_RecurringDonationExpectedPaymentSet] FOREIGN KEY ([RecurringDonationExpectedPaymentSetKey]) REFERENCES [dbo].[RecurringDonationExpectedPaymentSet] ([RecurringDonationExpectedPaymentSetKey])
GO
ALTER TABLE [dbo].[RecurringDonationExpectedPayment] ADD CONSTRAINT [FK_RecurringDonationExpectedPayment_RecurringDonationExpectedPaymentStatusRef] FOREIGN KEY ([RecurringDonationExpectedPaymentStatusCode]) REFERENCES [dbo].[RecurringDonationExpectedPaymentStatusRef] ([RecurringDonationExpectedPaymentStatusCode])
GO
ALTER TABLE [dbo].[RecurringDonationExpectedPayment] ADD CONSTRAINT [FK_RecurringDonationExpectedPayment_UserMain_CreatedBy] FOREIGN KEY ([CreatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[RecurringDonationExpectedPayment] ADD CONSTRAINT [FK_RecurringDonationExpectedPayment_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
GRANT REFERENCES ON  [dbo].[RecurringDonationExpectedPayment] TO [IMIS]
GRANT SELECT ON  [dbo].[RecurringDonationExpectedPayment] TO [IMIS]
GRANT INSERT ON  [dbo].[RecurringDonationExpectedPayment] TO [IMIS]
GRANT DELETE ON  [dbo].[RecurringDonationExpectedPayment] TO [IMIS]
GRANT UPDATE ON  [dbo].[RecurringDonationExpectedPayment] TO [IMIS]
GO
Uses
Used By